package com.cgc.venus.server.apiroute;

import com.cgc.venus.server.filter.LoginFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
/**
 * Created by 业哥 on 2017/5/24.
 */
@EnableZuulProxy
@SpringBootApplication
@ComponentScan("com.cgc.venus.server")
public class Application {
    @Bean
    public LoginFilter loginFilter(){
        return new LoginFilter();
    }

    public static void main(String[] args){
        SpringApplication.run(Application.class, args);
    }


}
